/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package helloscala.practise.chapter7

sealed abstract class Employee
//all the sealed subtype must be located in the same source file
case class Jeff(sal: Double) extends Employee
case class Winnie(sal: Double) extends Employee
case class Cameron(sal: Double) extends Employee
